package com.up.cloudfeiyibackend.controller;

import com.up.cloudfeiyibackend.result.Result;
import com.up.cloudfeiyibackend.service.ItemMapService;
import com.up.cloudfeiyibackend.service.ItemService;
import com.up.cloudfeiyibackend.vo.IchDisputesVO;
import org.apache.ibatis.annotations.Mapper;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 *
 * 地图页面接口
 */
@RequestMapping("/itemMap")
@RestController
public class ItemMapController {

    @Autowired
    private ItemMapService itemMapService;


    /**
     *
     * 获取所有非遗坐标信息
     * @return
     */
    @GetMapping("/getItemMap")
    public Result<List<IchDisputesVO>> getItemMap() {
        return itemMapService.getItemMap();
    }
}
